package com.myapp.task;

import javax.inject.Inject;
import javax.inject.Named;

import org.camunda.bpm.engine.RuntimeService;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;

@Named
public class SchedulerServiceTask implements JavaDelegate {
	@Inject
	private RuntimeService runtimeService;
	
	@Override
	public void execute(DelegateExecution execution) throws Exception {
		System.out.println("SchedulerServiceTask");
		runtimeService.startProcessInstanceByMessage("remind");
	}
}
